@import '@/app/styles/variables';

.form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  align-self: stretch;
}

.isBoughtForm {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  align-self: stretch;
}

.submitYellow {
  height: unset;
  padding: 15px 56px;
  height: 80px;
  width: 360px;
  align-self: center;
  font-size: 20px;
}

.delete {
  align-self: center;
}

.input {
  all: unset;
  cursor: text;
  flex: 1 0 0;
  display: flex;
  min-height: 138px;
  max-width: 100%;
  padding: 24px;
  white-space: pre-wrap;
  word-break: break-word;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 24px;
  align-self: stretch;

  border-radius: 16px;
  border: 1px solid #e1e1e1;
  background: #fff;

  color: #000;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 30px;
}

.submit {
  height: unset;
  padding: 15px 56px;
}

.stars {
  display: flex;
  align-items: center;
  align-self: stretch;
  width: fit-content;
}

.shake_left_right {
  animation: shake-left-right 0.6s linear both;
}

@keyframes shake-left-right {
  0%,
  100% {
    transform: rotate(0deg);
    transform-origin: 50% 50%;
  }

  10% {
    transform: rotate(8deg);
  }

  20%,
  40%,
  60% {
    transform: rotate(-10deg);
  }

  30%,
  50%,
  70% {
    transform: rotate(10deg);
  }

  80% {
    transform: rotate(-8deg);
  }

  90% {
    transform: rotate(8deg);
  }
}

.star {
  box-sizing: content-box;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  width: 48px;
  height: 48px;
  transition: all 0.1s ease-in;
  padding: 0 4px;

  svg {
    transform: scale(2.4);
  }

  color: #f3f3f3;

  &.active {
    color: #ffd662;
  }
}

.stars:hover .star {
  color: #ffd662;

  &:hover {
    color: #ffd662;
  }

  &:hover ~ .star {
    color: #e1e1e1;
  }
}

@include media(sm) {
  .form {
    gap: 12px;
  }

  .input {
    min-height: 66px;
    font-size: 16px;
    line-height: 22px;
    align-items: center;
    padding: 16px;
    border-radius: 12px;
  }

  .delete {
    margin-top: 4px;
  }

  .submitYellow {
    height: 64px;
    padding: 12px 32px;
    width: 100%;
    align-self: center;
    font-size: 16px;
  }

  .isBought {
    svg {
      transform: scale(2.3);
      margin-bottom: 12px;
    }
  }

  .submit {
    display: flex;
    padding: 12px 32px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    align-self: stretch;
    color: var(--simple-morning, #fff);
    text-align: center;
    font-size: 16px;
    line-height: 22px;
    /* 137.5% */
  }
}
